// 路由配置文件 routes.js
import Home from '../Header/index';
import About from '../sideBar/index'
// import Dashboard from './components/Dashboard';
// import {useRoutes} from "react-router-dom";

const routes = [
    {
        path: '/',
        element: <Home/>,
        exact: true,
    },
    {
        path: '/about',
        element: <About/>,
    },
    // {
    //     path: '/dashboard',
    //     element: Dashboard,
    //     routes: [
    //         {
    //             path: '/dashboard/settings',
    //             element: Settings,
    //         },
    //         {
    //             path: '/dashboard/profile',
    //             element: Profile,
    //         },
    //     ],
    // },
];
export default (routes);
